<T:ViewBase x:Class="WPFExcelReport.TSTK04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    xmlns:GV="clr-namespace:WPFExcelReport;assembly=TICC_GABEW" 
                    Background="White"  
                    Name="TV"
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/> 
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <DataGrid CanUserReorderColumns="True"  Grid.Row="1"  Grid.Column="0"
                          FontSize="12"
                          CanUserResizeRows="True" 
                          CanUserSortColumns="True"                  
                          AutoGenerateColumns="False"   
                          EnableRowVirtualization="True"  
                          RowDetailsVisibilityMode="VisibleWhenSelected" 
                          HorizontalAlignment="Stretch" 
                          VerticalAlignment="Stretch"
                          IsSynchronizedWithCurrentItem="True" Visibility="Visible"
                          ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"  
                           SelectedItem="{Binding dwSTOCK,ElementName=TV}"
                          Name="dlgMaster"
                          Margin="0,1,0,0" >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=MDATE}" Header="{Binding Source={Localization:TranslateExtension Word=日期}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=STOCKQTY}" Header="{Binding Source={Localization:TranslateExtension Word=当日库存}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=BS00}" Header="{Binding Source={Localization:TranslateExtension Word=昨日库存}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=BS10}" Header="{Binding Source={Localization:TranslateExtension Word=入库}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=BS13}" Header="{Binding Source={Localization:TranslateExtension Word=生产}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=BS43}" Header="{Binding Source={Localization:TranslateExtension Word=盘盈}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=BS20}" Header="{Binding Source={Localization:TranslateExtension Word=销售}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=BS42}" Header="{Binding Source={Localization:TranslateExtension Word=盘亏}}"  Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
        <GV:TGB14  Grid.Row="1" Grid.Column="1" />
    </Grid>
</T:ViewBase>
